﻿using System.Web.Mvc;
using UIShell.OSGI.Mvc;

namespace Isaac.Joy.Cms
{
    public class PluginAreaRegistration : AreaRegistration
    {
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                   "CmsPlugin",
                   "Cms/{controller}/{action}/{id}",
                   new { action = "Index", id = UrlParameter.Optional },
                   new[] { "Isaac.Joy.Cms.Controllers" }
               ).SetPluginSymbolicName("Isaac.Joy.Cms");
        }

        public override string AreaName
        {
            get { return "Cms"; }
        }
    }
}